import maxnum from './maxnum'

const install = function(Vue) {
  Vue.directive('maxnum', maxnum)
}

if (window.Vue) {
  window.maxnum = maxnum
  Vue.use(install); // eslint-disable-line
}

maxnum.install = install
export default maxnum
